package demo2;

public class Bird extends Aminal implements IFly {

    @Override
    public void eat() {
        System.out.println(name + " 再吃鸟粮....");
    }

    public Bird(String name, int age) {
        super(name, age);
    }


    @Override
    public void fly() {
        System.out.println(this.name + " 在飞");
    }
}
